<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>函数的多个长辈</title>
  </head>
  <body></body>
  <script>
    function User() {}
    console.dir(User);

    User.__proto__.view = function() {
      console.log("User function view method!");
    };
    User.view();

    let hd = new User();
    User.prototype.show = function() {
      console.log("后盾人");
    };
    hd.show();
    console.log(User.prototype == hd.__proto__);
  </script>
</html>
